Skip to content

[backport 2.14] - Automation: Fix fleet clusters handle error missing sub row element#17386

Closed
a-arias wants to merge 2 commits into
rancher:release-2.14from
a-arias:backport/2.14/2268-fleet-cluster-subwow-pt2-F
Closed

[backport 2.14] - Automation: Fix fleet clusters handle error missing sub row element#17386
a-arias wants to merge 2 commits into
rancher:release-2.14from
a-arias:backport/2.14/2268-fleet-cluster-subwow-pt2-F

Conversation

@a-arias
Copy link
Copy Markdown
Contributor

@a-arias a-arias commented Apr 28, 2026

Summary

Fixes rancher/qa-tasks#2268

Backport of #17035

Fixed a validation error where a sub-row element was not found.
Additionally, the code layout was corrected and a test option was added to ensure proper visibility.

Screenshot/Video

Screenshot 2026-04-27 at 1 17 14 p m

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes
  • The PR has been reviewed in terms of Accessibility
  • The PR has considered, and if applicable tested with, the three Global Roles Admin, Standard User and User Base

@a-arias a-arias added this to the v2.14.1 milestone Apr 28, 2026
@a-arias a-arias requested review from izaac and yonasberhe23 April 28, 2026 01:07
Copy link
Copy Markdown
Member

@richard-cox richard-cox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one minor comment, but the other is a major one (avoid loose ^ reference in package.json)

Comment thread package.json Outdated
fleetClusterDetailsPage.clusterTabs().clickTabWithSelector('[data-testid="btn-applications"]');

// check cluster labels
fleetClusterDetailsPage.clusterLabels().contains('foo: bar').scrollIntoView().should('be.visible');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should still be able to do ...subrows.contains('foo: bar')... either directly here or via the PO. these aboids the very loose clusterLabels self.find

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the change of

clusterLabels(): Cypress.Chainable {
    return this.self().find('.tag-data');

to

  hasClusterLabel(key: string, value: string) {
    return this.self()
      .find('.tag-data')
      .contains(`${ key }: ${ value }`);
  }

still suffers from the same problem (this.self().find). there's more information around this here

the original code looked at the subrows

fleetClusterListPage.list().resourceTable().sortableTable()
      .subRows()
      .should('contain.text', 'foo=bar');

can the solution also be to look at the table --> subrows with something like

fleetClusterListPage.list().resourceTable().sortableTable()
      .subRows()
      .contains('contain.text', 'foo=bar');

or

fleetClusterListPage.list().resourceTable().sortableTable()
      .subRows()
      .find('.tag-data')
      .contains('contain.text', 'foo=bar');

Copy link
Copy Markdown
Contributor

@izaac izaac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squash and re-request reviews.

@a-arias a-arias force-pushed the backport/2.14/2268-fleet-cluster-subwow-pt2-F branch from f4f7710 to 6133c97 Compare April 29, 2026 00:40
Comment thread yarn.lock
"@parcel/watcher-win32-ia32" "2.5.0"
"@parcel/watcher-win32-x64" "2.5.0"

"@percy/cli-app@1.31.8":
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this isn't necessary here. You should take a look at the qa-infra playbook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants